﻿using FluentValidation;

namespace BlazorApp3.Client.Application.Features.Weatherforecast.Commands.Create;

public class CreateWeatherforecastCommandValidator
    : AbstractValidator<CreateWeatherforecastCommand>
{
    public CreateWeatherforecastCommandValidator()
    {
        RuleFor(o => o.TemperatureC).GreaterThan(0).WithMessage("Template must be greater than 0.");
    }
}